package edu.iscas.appcheckclient.util;

public class TestQQ{
public void test(){
onView(withId("com.tencent.mobileqq:id/btn_login")).perform(click());
onView(withContentDescription("请输入QQ号码或手机或邮箱")).perform(typeText("18401698098"));
onView(withId("com.tencent.mobileqq:id/password")).perform(typeText("test123456"));
onView(withId("com.tencent.mobileqq:id/login")).perform(click());
onView(withId("com.tencent.mobileqq:id/ivTitleBtnLeftButton")).perform(click());
onView(withXPath("/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabHost/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabWidget/android.widget.FrameLayout[2]/android.widget.RelativeLayout")).perform(click());
onView(withXPath("/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabHost/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabWidget/android.widget.FrameLayout[2]")).perform(click());
onView(withXPath("/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabHost/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabWidget/android.widget.FrameLayout[1]/android.widget.RelativeLayout")).perform(click());
onView(withXPath("/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.TabHost/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.view.View/android.widget.FrameLayout/android.widget.LinearLayout/android.support.v4.view.ViewPager/android.widget.FrameLayout/android.widget.AbsListView/android.widget.RelativeLayout[2]/android.view.View[2]")).perform(click());
onView(withContentDescription("发消息")).perform(click());
onView(withId("com.tencent.mobileqq:id/input")).perform(typeText("hello. "));
onView(withId("com.tencent.mobileqq:id/fun_btn")).perform(click());
Espresso.pressBack();
}
}
